package com.rmb.common.model.response;

import lombok.Data;
import lombok.ToString;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

/**
 * @author ZhaoMyYang
 */
@Data
@ToString
public class QueryResponseResult<T> extends ResponseResult {

    QueryResult<T> queryResult;

    List<Map<String,Object>> reponseResult;

    List<Object> requestResult;

    public QueryResponseResult(ResultCode resultCode,QueryResult queryResult){
        super(resultCode);
       this.queryResult = queryResult;
    }

    public QueryResponseResult(ResultCode resultCode,List<Map<String,Object>> reponseResult){
        super(resultCode);
        this.reponseResult=reponseResult;
    }

    public QueryResponseResult(ResultCode resultCode,List<Map<String,Object>> reponseResult,List<Object> requestResult){
        super(resultCode);
        this.reponseResult=reponseResult;
        this.requestResult=requestResult;
    }
}
